package com.ljz.service.impl;

import com.ljz.entity.District;
import com.ljz.mapper.DistrictMapper;
import com.ljz.service.DistrictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;
@Service
public class DistrictServiceImpl implements DistrictService {
    @Autowired
    private DistrictMapper districtMapper;
    @Override
    public List<District> getDistricts() {
        return districtMapper.getAll();
    }
}
